package com.wish.wishsystem_management.mapper;

import com.wish.wishsystem_management.entity.SysRole;
import com.wish.wishsystem_management.entity.SysRoleDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色与部门对应关系 Mapper 接口
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {

    void deleteByRoleId(@Param("roleId") Long roleId);

    List<SysRole> queryListByDeptId(Long deptId);

    List<Long> queryDeptIdList(Long roleId);

    void saveDeptRole(SysRole sysRole);
}
